let domain, api;
switch (process.env.NODE_ENV) {
    case 'dev':
        domain = '';
        api = 'http://www1.eastasiannews.com/api/';
        break;
    case 'test':
        domain = '/h5';
        api = location.origin + '/api/';
        break;
    case 'production':
        domain = window.$config.host;
        api = window.$config.api
        break;
}
process.env.NODE_ENV == 'dev' ? '' : ''

export default {
    domain,
    api,
    pages: {
        home: domain + '/',
        index: domain + '/index.html',
        search: domain + '/search.html',
        tabVideo: domain + '/tab_video.html',
        recommend: domain + '/recommend.html',
        detail: domain + '/detail.html',
        hot: domain + '/hot.html',
        special: domain + '/special.html',
        myCenter: domain + '/my_center.html',
        message: domain + '/message.html',
        updatePwd: domain + '/update_pwd.html',
        filter: domain + '/filter.html',
        history: domain + '/history.html',
        fav: domain + '/fav.html',
        feedback: domain + '/feedback.html',
        setting: domain + '/setting.html',
        reset_pwd: domain + '/reset_pwd.html',
        register: domain + '/register.html',
        about: domain + '/about.html',
        agreement: domain + '/agreement.html',
        login: domain + '/login.html',
        personalData: domain + '/personal_data.html',
        feedbackDetails: domain + '/feedback_details.html',
        complainDetails: domain + '/complain_details.html',
        system_message: domain + '/system_message.html',
        atlas: domain + '/atlas.html',
        dialogue: domain + '/dialogue.html',
        reply_my: domain + '/reply_my.html',
        my_issue: domain + '/my_issue.html',
        comment: domain + '/comment.html', //回复页面 ?type=news|comment&id=xxx
        admire: domain + '/admire.html', //点赞列表  ?id=xx&total=xx
        profile: domain + '/profile.html', //用户评论中心  ?id=xx
        square: domain + '/square.html', //广场
        follow: domain + '/follow.html', //广场 ？type=1 关注列表 type=2 粉丝列表
        my_profile: domain + '/my_profile.html', //我的动态
        weekHot: domain + '/week_hot.html', //一周热点
        hotDetail: domain + '/hot_detail.html', //热点详情
        rank_details: domain + '/rank_details.html' //排行榜详情
    }

}